package com.b.service;

import com.b.domain.Category;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;

import java.util.List;
public interface CategoryService{


    boolean deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> getAll();
    SearchPage<Category> list(String type, PageRequest pageRequest);

    boolean add(Category category);

    boolean update(Category category);
}
